package com.zy.ioc.pro1;

import com.zy.ioc.pro1.bean.Orders;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @program: mavenTest153
 * @description: 基于注解的容器方案
 * @author: zy
 * @create: 2025-07-12 15:02
 */
public class App3_annatation {
    public static void main(String[] args) {
         ApplicationContext context= new AnnotationConfigApplicationContext(AppConfig.class);
         Orders orders= context.getBean("orders", Orders.class);
         System.out.println(orders);
    }
}
